package com.cipe.cmrs.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.cipe.cmrs.model.ref.Link;

/**
 * <p>
 * Pojo mapping TABLE dbo.RolePrivileges
 * </p>
 * 
 * <p>
 * Generated at Sat Dec 03 14:39:50 PKT 2011
 * </p>
 * 
 * @author Incepio
 * 
 */
@Entity
@Table(name = "roleprivileges")
@SuppressWarnings("serial")
public class Roleprivileges extends BaseAuditEntity {

	/**
	 * Attribute pageurl
	 */
	/*
	 * @ManyToOne
	 * 
	 * @JoinColumn(name = "pageurl") private Pageurl pageurl;
	 */
	/**
	 * Attribute role
	 */
    @ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "roleid")
	private Role role;

    @ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "link")
	private Link link;

	/**
	 * get pageurl
	 */
	/*
	 * public Pageurl getPageurl() { return this.pageurl; }
	 */

	/**
	 * get role
	 */
	public Role getRole() {
		return this.role;
	}

	/*	*//**
	 * set pageurl
	 */
	/*
	 * public void setPageurl(Pageurl pageurl) { this.pageurl = pageurl; }
	 */

	/**
	 * set role
	 */
	public void setRole(Role role) {
		this.role = role;
	}

	public Link getLink() {
		return link;
	}

	public void setLink(Link link) {
		this.link = link;
	}
}